#! /usr/bin/make -f 

DEB_PYTHON_SYSTEM    := pycentral
DEB_SRCDIR           := $(CURDIR)/src
DEB_COMPRESS_EXCLUDE := cvxopt.pdf

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

build/python-cvxopt:: debian/stamp-docs
debian/stamp-docs:
	make -C $(CURDIR)/doc latex
	cd $(CURDIR)/doc  && dvipdf cvxopt.dvi
	touch $@

#install/python-cvxopt::
#	dh_install -ppython-cvxopt doc/cvxopt/*.html doc/cvxopt/*.gif doc/cvxopt/*.css usr/share/doc/python-cvxopt/html

clean::
	$(RM) debian/stamp-docs

get-orig-source:
	uscan --rename --upstream-version 0 || true
	@echo successfully retrieved upstream tarball
